dataSource {
    pooled = true
//    driverClassName = "com.mysql.jdbc.Driver"
//    username = "sa"
//    password = ""
		dialect = org.hibernate.dialect.Oracle10gDialect
		driverClassName = 'oracle.jdbc.driver.OracleDriver'
		username = 'wechat'
		password = 'wechat'
		url = 'jdbc:oracle:thin:@10.29.68.139:1521:orcltest'
		dbCreate = 'create-drop'
}
hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = false
    cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
//environments {
//    development {
//        dataSource {
//		    username = "root"
//		    password = ""
//            dbCreate = "create-drop" // one of 'create', 'create-drop','update'
//            url = "jdbc:mysql://localhost/cppei_wx_gate?useUnicode=true&characterEncoding=utf8"
//			loggingSql = true
//
//			validationQuery="SELECT 1"
//			testOnBorrow=true
//			testOnReturn=true
//			testWhileIdle=true
//			
//			timeBetweenEvictionRunsMillis=1000 * 60 * 30
//			numTestsPerEvictionRun=3
//			minEvictableIdleTimeMillis=1000 * 60 * 30
//        }
//    }
//    production {
//		dialect = org.hibernate.dialect.Oracle10gDialect
//		driverClassName = 'oracle.jdbc.driver.OracleDriver'
//		username = 'wechat'
//		password = 'wechat'
//		url = 'jdbc:oracle:thin:@10.29.68.139:1521:orcltest'
//		dbCreate = 'update'
//	}
////    test {
////        dataSource {
////            dbCreate = "update"
////            url = "jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000"
////        }
////    }
//}
